<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>
        HIUI 前端页面框架 - 基础说明
    </title>
    <meta content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <link rel="stylesheet" type="text/css" href="../../styles/hiui.css">
    <link rel="stylesheet" type="text/css" href="../../styles/site.css">

<body>
    <% var navName = 'form'; %>
    <%- include('../_parts/_header') %>
    <div class="site-container">
        <div class="site-tree">
            <%- include('../_parts/_nav') %>
        </div>
        <div class="site-content">
            <h3 class="site-title">Forms 表单<a href="#normalize">#</a></h3>
            <h4 class="site-subtitle">1. 基本使用</h4>
            <div class="site-info">
                <form class="form">
                    <fieldset>
                        <legend>表单标题</legend>
                        <div class="form-item">
                            <label class="form-label"><span class="form-required">*</span>姓名</label>
                            <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                        </div>
                        <div class="form-item">
                            <label class="form-label">禁用</label>
                            <input type="text" class="form-input" autocomplete="false" placeholder="请输入" disabled />
                        </div>
                        <div class="form-item">
                            <label class="form-label">只读</label>
                            <input type="text" class="form-input" autocomplete="false" placeholder="请输入" readonly />
                        </div>
                        <div class="form-item">
                            <label class="form-label"><span class="form-required">*</span>密码</label>
                            <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                        </div>
                        <div class="form-item">
                            <label class="form-label">邮箱</label>
                            <p class="form-static">test@test.com</p>
                        </div>
                        <div class="form-item">
                            <label class="form-label">文件上传</label>
                            <input type="file" autocomplete="false" placeholder="请输入手机号码" />
                            <p class="form-help">请选择要上传的文件</p>
                        </div>
                        <div class="form-item">
                            <label class="form-label">单选框</label>
                            <select class="form-select">
                                <option value="">请选择问题</option>
                                <option value="你工作的第一个城市">你工作的第一个城市</option>
                                <option value="你的工号">你的工号</option>
                                <option value="你最喜欢的老师">你最喜欢的老师</option>
                            </select>
                        </div>
                        <div class="form-item">
                            <label class="form-label">禁用单选框</label>
                            <select class="form-select" disabled>
                                <option value="">请选择问题</option>
                            </select>
                        </div>
                        <div class="form-item">
                            <label class="form-label">下拉多选框</label>
                            <select class="form-select" multiple>
                                <option value="">请选择问题</option>
                                <option value="你工作的第一个城市">你工作的第一个城市</option>
                                <option value="你的工号">你的工号</option>
                                <option value="你最喜欢的老师">你最喜欢的老师</option>
                            </select>
                        </div>
                        <div class="form-item">
                            <label class="form-label">复选框</label>
                            <label class="form-check">
                                <input type="checkbox" name="check" title="写作">写作
                            </label>
                            <label class="form-check">
                                <input type="checkbox" name="check" title="阅读">阅读
                            </label>
                            <label class="form-check">
                                <input type="checkbox" name="check" title="游戏">游戏
                            </label>
                        </div>
                        <div class="form-item">
                            <label class="form-label">单选框</label>
                            <label class="form-radio">
                                <input type="radio" name="radio" title="写作">写作
                            </label>
                            <label class="form-radio">
                                <input type="radio" name="radio" title="阅读">阅读
                            </label>
                            <label class="form-radio">
                                <input type="radio" name="radio" title="游戏">游戏
                            </label>
                        </div>
                        <div class="form-item">
                            <label class="form-label">普通文本域</label>
                            <textarea placeholder="请输入内容" class="form-textarea"></textarea>
                        </div>
                        <div class="form-item">
                            <label class="form-check">
                                <input type="checkbox" name="check" title="同意协议">同意协议
                            </label>
                        </div>
                        <button type="submit" class="btn btn-primary">立即提交</button>
                        <button type="reset" class="btn">重置</button>
                    </fieldset>
                </form>
            </div>
            <h4 class="site-subtitle">2. 表单排列</h4>
            <h3 class="site-thititle">2.1 水平排列</h3>
            <div class="site-info">
                <form class="form form-horizontal">
                    <div class="form-item">
                        <label class="col-2 form-label"><span class="form-required">*</span>邮箱：</label>
                        <div class="col-10">
                            <p class="form-static">邮箱是test@test.com</p>
                        </div>
                    </div>
                    <div class="form-item">
                        <label for="" class="col-2 form-label">账号：</label>
                        <div class="col-10">
                            <input type="text" class="form-input" placeholder="账号">
                        </div>
                    </div>
                    <div class="form-item">
                        <label for="" class="col-2 form-label">密码：</label>
                        <div class="col-10">
                            <input type="password" class="form-input" placeholder="密码">
                        </div>
                    </div>
                    <div class="form-item">
                        <div class="col-10 col-offset-2">
                            <label>
                                <input type="checkbox"> 记住我
                            </label>
                        </div>
                    </div>
                    <div class="form-item">
                        <div class="col-10 col-offset-2">
                            <button class="btn btn-primary">提交</button>
                        </div>
                    </div>
                </form>
            </div>
            <h3 class="site-thititle">2.2 行内排列</h3>
            <div class="site-info">
                <form class="form form-inline">
                    <div class="form-item">
                        <label for="" class="form-label">账号：</label>
                        <input type="text" class="form-input" placeholder="账户">
                    </div>
                    <div class="form-item">
                        <label for="" class="form-label">密码：</label>
                        <input type="password" class="form-input" placeholder="密码">
                    </div>
                    <div class="form-item">
                        <label>
                            <input type="checkbox"> 记住我
                        </label>
                    </div>
                    <button class="btn btn-primary">提交</button>
                </form>
            </div>
            <h3 class="site-subtitle">3 验证状态</h3>
            <h4 class="site-thititle">3.1 基本使用</h4>
            <div class="site-info">
                <form action="" class="form">
                    <div class="form-item has-success">
                        <label class="form-label">验证成功</label>
                        <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                    </div>
                    <div class="form-item has-warning">
                        <label class="form-label">验证警告</label>
                        <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                    </div>
                    <div class="form-item has-danger">
                        <label class="form-label">验证失败</label>
                        <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                    </div>
                    <div class="form-item has-feedback has-success">
                        <label class="form-label">验证成功</label>
                        <select class="form-select">
                            <option value="">请选择问题</option>
                            <option value="你工作的第一个城市">你工作的第一个城市</option>
                            <option value="你的工号">你的工号</option>
                            <option value="你最喜欢的老师">你最喜欢的老师</option>
                        </select>
                    </div>
                    <div class="form-item has-danger">
                        <label class="form-label">普通文本域</label>
                        <textarea placeholder="请输入内容" class="form-textarea"></textarea>
                    </div>
                </form>
            </div>
            <h4 class="site-thititle">3.2 带图标提示</h4>
            <div class="site-info">
                <form action="" class="form">
                    <div class="form-item has-feedback has-success">
                        <label class="form-label">验证成功</label>
                        <div class="form-group">
                            <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                            <span class="hiicon hiicon-check"></span>
                        </div>
                    </div>
                    <div class="form-item has-feedback has-warning">
                        <label class="form-label">验证警告</label>
                        <div class="form-group">
                            <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                            <span class="hiicon hiicon-exclaimination"></span>
                        </div>
                    </div>
                    <div class="form-item has-feedback has-danger">
                        <div class="form-group">
                            <label class="form-label">验证失败</label>
                            <div class="form-group">
                                <input type="text" class="form-input" autocomplete="false" placeholder="请输入" />
                                <span class="hiicon hiicon-close"></span>
                            </div>
                        </div>
                    </div>
                    <div class="form-item has-feedback has-danger">
                        <div class="form-group">
                            <label class="form-label">验证成功</label>
                            <div class="form-group">
                                <select class="form-select">
                                    <option value="">请选择问题</option>
                                    <option value="你工作的第一个城市">你工作的第一个城市</option>
                                    <option value="你的工号">你的工号</option>
                                    <option value="你最喜欢的老师">你最喜欢的老师</option>
                                </select>
                                <span class="hiicon hiicon-check"></span>
                            </div>
                        </div>
                    </div>
                    <div class="form-item has-feedback has-danger">
                        <label class="form-label">普通文本域</label>
                        <div class="form-group">
                            <textarea placeholder="请输入内容" class="form-textarea"></textarea>
                            <span class="hiicon hiicon-close"></span>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../../scripts/vendor.js"></script>
    <script type="text/javascript" src="../../scripts/site.js"></script>
</body>

</html>